home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / jdk.xml < prev    next >
Text File  |  2002-10-03  |  4KB  |  92 lines

  1. <search function="jdk">
  2.   <name>JDK Javadoc Search</name>
  3.   <description>Search Sun's JDK Javadoc. Uses Google.
  4.     <div class="helpboxDescLabels">Switches:</div>
  5.       <table class="helpboxDescTable">
  6.         <tr><td>/1.4</td><td> - </td><td>Version 1.4 JDK (default)</td></tr>
  7.         <tr><td>/1.3</td><td> - </td><td>Version 1.3 JDK</td></tr>
  8.         <tr><td>/tutorial</td><td> - </td><td>Java language tutorial</td></tr>
  9.         <tr><td>/j2ee</td><td> - </td><td>J2EE documentation</td></tr>
  10.         <tr><td>/jls</td><td> - </td><td>Java language specification</td></tr>
  11.         <tr><td>/jvm</td><td> - </td><td>Java VM specification</td></tr>
  12.         <tr><td>/all</td><td> - </td><td>Search all of java.sun.com</td></tr>
  13.       </table>
  14.     <div class="helpboxDescLabels">Example:</div>
  15.     <table class="helpboxDescTable">
  16.       <tr><td>jdk HashMap /1.3</td></tr>
  17.       <tr><td>jdk catch /tutorial</td></tr>
  18.     </table>
  19.   </description>
  20.   <link>http://java.sun.com/j2se/1.4/docs/api/</link>
  21.   <category>Computers</category>
  22.   <contributor>David Bau</contributor>
  23.   
  24.   <form name="jdkf" action="http://www.google.com/search" method="get">
  25.     <input type="hidden" name="q"/>
  26.     <input type="hidden" name="meta" value=""/>
  27.     <input type="hidden" name="lr" value="lang_en"/>
  28.     <input type="hidden" name="btnI" value="I'm Feeling Lucky"/>
  29.   </form>
  30.  
  31.   <script><![CDATA[
  32.     // Uses Google I'm feeling lucky search
  33.     function jdk(q)
  34.     {
  35.       var defpage = 'http://java.sun.com/j2se/1.4/docs/api/';
  36.       var version = '"v1.4.0" inurl:api intitle:';
  37.       var args = parseArgs(q, "1.4, 1.3, all, tutorial, jls, jvm, j2ee");
  38.       if (q == "")
  39.         openSearchWindow(defpage);
  40.       else if (args.switches.length > 1)
  41.         nullArgs("jdk","?");
  42.       else
  43.       {
  44.         if (args.switches.length == 1)
  45.         {
  46.           switch (args.switches[0].name)
  47.           {
  48.             case "all":
  49.               version = ''; break;
  50.             case "tutorial":
  51.               defpage = 'http://java.sun.com/docs/books/tutorial/index.html';
  52.               version = 'inurl:nutsandbolts -inurl:reallybigindex -inurl:_keywords -inurl:TOC ';
  53.               break;
  54.             case "jls":
  55.               defpage = 'http://java.sun.com/docs/books/jls/second_edition/html/jTOC.doc.html';
  56.               version = 'inurl:jls inurl:second_edition -inurl:jTOC -inurl:jIX ';
  57.               break;
  58.             case "jvm":
  59.               defpage = 'http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html';
  60.               version = 'inurl:vmspec inurl:2nd -inurl:VMSpecTOC ';
  61.               break;
  62.             case "j2ee":
  63.               defpage = 'http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html';
  64.               version = 'inurl:j2ee inurl:api intitle:';
  65.               break;
  66.             case "1.3":
  67.               defpage = 'http://java.sun.com/j2se/1.3/docs/api/';
  68.               version = '"v1.3.1" inurl:api intitle:';
  69.               break;
  70.             case "1.4":
  71.             default:
  72.               // this is the default already
  73.           }
  74.           if (args.q == "")
  75.           {
  76.             openSearchWindow(defpage);
  77.             return;
  78.           }
  79.         }
  80.         document.jdkf.q.value=version + args.q + ' site:java.sun.com';
  81.         submitForm(jdkf);
  82.       }
  83.     }
  84.   ]]></script>
  85.  
  86.   <copyright>
  87.     Copyright (c) 2002 David Bau
  88.     Distributed under the terms of the
  89.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  90.   </copyright>
  91. </search>
  92.